﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

// ReSharper disable once CheckNamespace
namespace NotifyPilot.WCF.Helpers
{
    [MetadataType(typeof(YammerConfigParametersMetaData))]
    public partial class YammerConfigParameters
    {
    }

    public class YammerConfigParametersMetaData
    {
        [Display(Name = "Consumer Key")]
        [Required]
        public String ConsumerKey { get; set; }
        [Display(Name = "Consumer Secret")]
        [Required]
        public String ConsumerSecret { get; set; }
        [HiddenInput(DisplayValue = false)]
        public String Code { get; set; }
        [HiddenInput(DisplayValue = false)]
        public String Token { get; set; }
        [Display(Name = "Yammer Group for publishing")]
        [Required]
        public long PublishGroup { get; set; }
        [Display(Name = "Yammer default topic for publishing (let blank if you don't want topic)")]
        public String DefaultTopic { get; set; }
        [Url]
        public String BackUrl { get; set; }
    }
}